const WXAPI = require('apifm-wxapi')
const TOOLS = require('../../utils/tools.js')
const AUTH = require('../../utils/auth')
const CONFIG = require('../../config.js')
const APP = getApp()

Page({
  data: {
    currentTheme: '',
    currentLang: '',
    bj:"",
    qj:wx.getStorageSync("qj")?wx.getStorageSync("qj"):'bz',
  },
  onShow() {
    // 获取全局设置
    const app = getApp()
    this.setData({
      currentTheme: app.globalData.theme,
      currentLang: app.globalData.language,
      bj:wx.getStorageSync("欢迎页面图片"),
      qj:wx.getStorageSync("qj")?wx.getStorageSync("qj"):'bz'
    })
    console.log("ddd",app.globalData.theme,app.globalData.language,this.data.bj);
    console.log("qj",this.data.qj);
  },
  
  onLoad: function(e) {
  },
  bj(){
    wx.navigateTo({
      url: '/packageYt/index/index',
    })
  },


  onShareAppMessage: function() {    
    return {
      title: '"' + wx.getStorageSync('mallName') + '" ' + wx.getStorageSync('share_profile'),
      // path: '/pages/index/index?inviter_id=' + wx.getStorageSync('uid')
    }
  },
  onShareTimeline() {    
    return {
      title: '"' + wx.getStorageSync('mallName') + '" ' + wx.getStorageSync('share_profile'),
      // query: 'inviter_id=' + wx.getStorageSync('uid'),
      // imageUrl: wx.getStorageSync('share_pic')
    }
  }
})